package test;

import java.util.Scanner;

public class test7 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数：");
        int x = sc.nextInt();
        int tamp = x;
        int num = 0;
        while(x != 0) {
            int ge = x % 10;
            x = x /10;
            num = num*10+ge;
        }
        System.out.println(num==tamp);

    }
}
